package com.work11;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Station implements Comparable<Station>{
    private String name; //站名
    private int stationCode; //车站编号

    @Override
    public int compareTo(Station o) {
        return this.stationCode - o.stationCode;
    }
}
